home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / applications / 388 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: mail2news.demon.co.uk!cvget.demon.co.uk
  2. From: Guy Tanner <bgt@cvget.demon.co.uk>
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: Tools Manager and Memory
  5. Date: Tue, 9 Jan 96 00:37:05 GMT
  6. Organization: the nearest Pub
  7. Message-ID: <9601090037.AA007ci@cvget.demon.co.uk>
  8. References: <861.6581T612T2111@genie.geis.com>
  9. X-NNTP-Posting-Host: cvget.demon.co.uk
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!cvget.demon.co.uk
  12.  
  13. Steven Folberg (s.folberg@genie.geis.com) wrote:
  14. : Another question:  Can you get a TM dock button assigned to a CLI program to
  15. : open a shell window (I'm running WB 3.0)?
  16.  
  17. Yes you can, I've been doing with several CLI commands.
  18.  
  19. Here are the steps.
  20.  
  21. 1) Create a script that calls the command you want with any keywords.
  22.  
  23.    For Example I use the following to to unbatch my NewsDownloads if the connect
  24.    is broken.
  25.  
  26. ;ver$ 1.0 UnBatchNewsNTTP Script
  27. ; For use with standard NTTP NewsBatch Files
  28.  
  29. FailAT 35
  30.  
  31.  
  32. echo "UnBatching News"
  33. AmiTCP:bin/rnews uuspool:NewsBatch
  34.  
  35. echo "Delete BatchFile"
  36. wait 1
  37. c:delete uuspool:NewsBatch QUIET
  38.  
  39. Endcli
  40.  
  41. 2) Save your script in a directory of your choice.
  42.  
  43. 3) Change the Icon Type of the script to a Project. You can use the Icon Editor
  44.    that comes with the WorkBench to do this.
  45.  
  46. 4) Select the Script with one click, and then bring up its Information Window by
  47.    using "Right Amiga + I"
  48.  
  49. 5) In the Default Tool: box, enter C:IconX
  50.  
  51. 6) Select New (bottom left) and then enter in the window right of the button
  52.  
  53.    WINDOW=con:88/79/285/147/Script_is_running
  54.  
  55. 7) Now setup the Script with Tools Manager as if it was just a standard program.
  56.    You will have the script run in its own shell.
  57.  
  58. Good Luck, any problems, drop me a line.
  59.  
  60. Cheers Guy.
  61.